<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: cordic/cordic2c_inc.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_a674585e0fd636fbc3b91e5f7b647f01.html">cordic</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">cordic2c_inc.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="cordic2c__inc_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef _CORDIC_INC_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define _CORDIC_INC_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a97ad155ac7434ee543385126cd1d3313">    9</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="cordic2c__inc_8h.html#a97ad155ac7434ee543385126cd1d3313">Cordic_T</a>; <span class="comment">/* 32 */</span></div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a0d2210939130fe06cdbba9248686fa03">   10</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="cordic2c__inc_8h.html#a0d2210939130fe06cdbba9248686fa03">UCordic_T</a>; <span class="comment">/* 32 */</span></div><div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a1ba532e6cdd503e97977432406864cdd">   11</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">double</span> <a class="code" href="cordic2c__inc_8h.html#a1ba532e6cdd503e97977432406864cdd">FCordic_T</a>; <span class="comment">/* 64 */</span></div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#ad0c9c86596235ca7b3e113b12aeeafa0">   12</a></span>&#160;<span class="preprocessor">#define Cordic_T_Bits     32</span></div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a77433404a778cb9a148b6db69eedea93">   13</a></span>&#160;<span class="preprocessor">#define Cordic_T_FractionBits  28</span></div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a75d478dd9c919ea7ecf27cc49b9dab58">   14</a></span>&#160;<span class="preprocessor">#define Cordic_One    0x10000000 </span><span class="comment">/* 1.000000000000000e+00 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a4b976fbfc7fdff42650fe0419698cabf">   15</a></span>&#160;<span class="preprocessor">#define Cordic_K      0x9b74eda </span><span class="comment">/* 6.072529350088812e-01 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a38f46d7f72ed48712304af6f64b896f2">   16</a></span>&#160;<span class="preprocessor">#define Cordic_INVK   0x1a592148 </span><span class="comment">/* 1.646760258121066e+00 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a77653d895effdbff8323975329805fc9">   17</a></span>&#160;<span class="preprocessor">#define Cordic_KP     0x1351e872 </span><span class="comment">/* 1.207497067763072e+00 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a01817682b78da8cc004b6f0e9dd0d889">   18</a></span>&#160;<span class="preprocessor">#define Cordic_INVKP  0xd402407 </span><span class="comment">/* 8.281593609602157e-01 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a1b436217d30824e9004f1e16d33abf0a">   19</a></span>&#160;<span class="preprocessor">#define Cordic_HalfPI 0x1921fb54 </span><span class="comment">/* 1.570796325802803e+00 */</span><span class="preprocessor"></span></div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#a20ea29e123c9dc91c52635b0ffee975d">   20</a></span>&#160;<span class="preprocessor">#define Cordic2FP(a)  ( (double) (a) / (double) (Cordic_One)) </span></div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="cordic2c__inc_8h.html#ad614e1a545ad0fd263ea0afb0456cb7a">   21</a></span>&#160;<span class="preprocessor">#define FP2Cordic(a)  ((Cordic_T) (Cordic_One * (a)))</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#ifdef CORDIC_TABLE</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="cordic2c__inc_8h.html#a97ad155ac7434ee543385126cd1d3313">Cordic_T</a> <a class="code" href="cordic2c__inc_8h.html#abfedbfddd3d22467322bc0ad058d2500">v_atangrad</a>[] = {</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    0x8000000, <span class="comment">/* 5.00000000e-01 */</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    0x4b90147, <span class="comment">/* 2.95167234e-01 */</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    0x27ece16, <span class="comment">/* 1.55958258e-01 */</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    0x1444475, <span class="comment">/* 7.91668482e-02 */</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    0xa2c350, <span class="comment">/* 3.97370458e-02 */</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    0x5175f8, <span class="comment">/* 1.98878944e-02 */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    0x28bd87, <span class="comment">/* 9.94637236e-03 */</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    0x145f15, <span class="comment">/* 4.97348979e-03 */</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    0xa2f94, <span class="comment">/* 2.48678029e-03 */</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    0x517cb, <span class="comment">/* 1.24339387e-03 */</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    0x28be6, <span class="comment">/* 6.21698797e-04 */</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    0x145f3, <span class="comment">/* 3.10849398e-04 */</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    0xa2f9, <span class="comment">/* 1.55422837e-04 */</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    0x517c, <span class="comment">/* 7.77095556e-05 */</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    0x28be, <span class="comment">/* 3.88547778e-05 */</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    0x145f, <span class="comment">/* 1.94273889e-05 */</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    0xa2f, <span class="comment">/* 9.71183181e-06 */</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    0x517, <span class="comment">/* 4.85405326e-06 */</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    0x28b, <span class="comment">/* 2.42516398e-06 */</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    0x145, <span class="comment">/* 1.21071935e-06 */</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    0xa2, <span class="comment">/* 6.03497028e-07 */</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    0x51, <span class="comment">/* 3.01748514e-07 */</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    0x28, <span class="comment">/* 1.49011612e-07 */</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    0x14, <span class="comment">/* 7.45058060e-08 */</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    0xa, <span class="comment">/* 3.72529030e-08 */</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    0x5, <span class="comment">/* 1.86264515e-08 */</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    0x2, <span class="comment">/* 7.45058060e-09 */</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    0x1, <span class="comment">/* 3.72529030e-09 */</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    0x0, <span class="comment">/* 0.00000000e+00 */</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    0</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;};</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#else // CORDIC_TABLE</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="cordic2c__inc_8h.html#a97ad155ac7434ee543385126cd1d3313">Cordic_T</a> <a class="code" href="cordic2c__inc_8h.html#abfedbfddd3d22467322bc0ad058d2500">v_atangrad</a>[];</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#endif // CORDIC_TABLE</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#endif // _CORDIC_INC_H</span></div><div class="ttc" id="cordic2c__inc_8h_html_a1ba532e6cdd503e97977432406864cdd"><div class="ttname"><a href="cordic2c__inc_8h.html#a1ba532e6cdd503e97977432406864cdd">FCordic_T</a></div><div class="ttdeci">double FCordic_T</div><div class="ttdef"><b>Definition:</b> <a href="cordic2c__inc_8h_source.html#l00011">cordic2c_inc.h:11</a></div></div>
<div class="ttc" id="cordic2c__inc_8h_html_a97ad155ac7434ee543385126cd1d3313"><div class="ttname"><a href="cordic2c__inc_8h.html#a97ad155ac7434ee543385126cd1d3313">Cordic_T</a></div><div class="ttdeci">int Cordic_T</div><div class="ttdef"><b>Definition:</b> <a href="cordic2c__inc_8h_source.html#l00009">cordic2c_inc.h:9</a></div></div>
<div class="ttc" id="cordic2c__inc_8h_html_abfedbfddd3d22467322bc0ad058d2500"><div class="ttname"><a href="cordic2c__inc_8h.html#abfedbfddd3d22467322bc0ad058d2500">v_atangrad</a></div><div class="ttdeci">const Cordic_T v_atangrad[]</div></div>
<div class="ttc" id="cordic2c__inc_8h_html_a0d2210939130fe06cdbba9248686fa03"><div class="ttname"><a href="cordic2c__inc_8h.html#a0d2210939130fe06cdbba9248686fa03">UCordic_T</a></div><div class="ttdeci">unsigned int UCordic_T</div><div class="ttdef"><b>Definition:</b> <a href="cordic2c__inc_8h_source.html#l00010">cordic2c_inc.h:10</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
